<template>
    <van-grid :column-num="channelArr.length">
        <van-grid-item @click="$router.push('/channel/' + item.id)" v-for="item in channelArr" :key="item.id"
            :icon="item.icon_url" :text="item.name" />
    </van-grid>
</template>

<script setup lang='ts'>
import { ref, defineProps } from 'vue';
import type { Ichannelitem } from '@/types/homeType';

const props = defineProps<{
    channelArr: Array<Ichannelitem>
}>()

</script>
<style scoped></style>